module.exports = app => {

  const { controller, middleware, router } = app;

  router.get('获取权限列表', '/user/permission/list', middleware.jwt(), controller.permission.list);
  router.post('新增权限', '/user/permission/insert', middleware.jwt(), controller.permission.insert);
  router.post('更新权限', '/user/permission/update', middleware.jwt(), controller.permission.update);
  router.post('删除权限', '/user/permission/delete', middleware.jwt(), controller.permission.delete);
};
